package com.woniu.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.woniu.dto.EmployeeInfoDto;
import com.woniu.dto.EmployeeNameDTO;
import com.woniu.dto.UserInfoDTO;
import com.woniu.param.SelectUserInfoParam;
import com.woniu.param.UpdateUserInfoParam;
import com.woniu.user.entity.EmployeeInfo;

import java.util.List;

/**
 * <p>
 * 维修员工表 服务类
 * </p>
 *
 * @author ly
 * @since 2024年12月05日
 */
public interface EmployeeInfoService extends IService<EmployeeInfo> {

    void updateEmployeeInfo(Integer userId, String profession);

    List<EmployeeNameDTO> selectEmployeeById()throws Exception;

    PageInfo<EmployeeInfoDto> queryWorkerList(SelectUserInfoParam bean)throws Exception;

    Integer updateWorkerInfo(List<UpdateUserInfoParam> param)throws Exception;


    void   updateEmployeeInfoStatus(String userId)throws Exception;

    List<EmployeeInfoDto> queryWorkerListAreaCode(String areaCodeId)throws Exception;

    void disableWorker(String userId)throws Exception;

    void enableWorker(String userId)throws Exception;

    void deleteWorker(String userId)throws Exception;
}
